<template>
    <div class="content">
        <ul>
            <li v-for="(item, index) in songList" :key="index">
                <div
                        class="song-item"
                        @click="
            toplay(item.id, item.url, item.pic, index, item.name, item.lyric)
          "
                >
                    <div class="item-index">
                        {{ index + 1 }}
                    </div>
                    <div class="item">
                        <div class="item-title">{{ replaceFName(item.name) }}</div>
                        <span class="item-name">{{ replaceLName(item.name) }} ·</span>
                        <span class="item-intro">{{ item.introduction }}</span>
                    </div>
                </div>
                <div class="mui-icon mui-icon-more my-icon-more"></div>
            </li>
        </ul>
    </div>
</template>

<script>
    // eslint-disable-next-line no-unused-vars
    import { mapGetters } from "vuex";
    // eslint-disable-next-line no-unused-vars
    import { mixin } from "../minx/index";
    export default {
        name:  "AlbumContent",
        mixins: [mixin],
        props: ["songList"],
    }
</script>

<style lang="scss" scoped>
    ul, li {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    // color
    $color-white: #ffffff;
    $color-white-dark: #f7f7f7;
    $color-grey: #8e98a2;
    $color-red: #e1594b;
    $color-blue: #26a2ff;
    $color-blue-dark: #48658f;
    $color-black: black;

    // distance
    $padding-out: 0 0.5em;
    .content {
        margin-top: 1.5em;
        padding: 0;
        ul,
        li {
            padding-left: 0;
        }
        li {
            position: relative;
            margin-bottom: 1em;
            padding: $padding-out;
            .song-item {
                text-align: left;
                background-color:$color-white;

                //  序号
                .item-index {
                    color:$color-grey;
                    font-size: 1em;
                    display: inline-block;
                    line-height: 100%;
                    position: absolute;
                    top: 25%;
                }
                // 歌名,歌手,专辑名
                .item {
                    display: inline-block;
                    padding-left: 2em;
                    // 歌名
                    .item-title {
                        color:$color-blue-dark;
                        font-size: 1em;
                    }
                    .item-name,
                    .item-intro {
                        color: $color-grey;
                        font-size: 0.75em;
                    }
                }
            }
            .my-icon-more {
                transform: rotate(90deg);
                position: absolute;
                right: 1em;
                top: 25%;
            }
        }
    }

</style>
